package org.whuims.repository.jpa;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.whuims.entity.Comment;
import org.whuims.entity.Infor;

/**
 * Created by Roger on 2016/12/21.
 */
public interface CommentDao extends JpaRepository<Comment, Long>, JpaSpecificationExecutor<Comment> {

    Page<Comment> findByInfor(Infor infor, Pageable pageable);
}
